package com.amoby.main.service;

import java.util.List;
import java.util.Map;

import com.amoby.base.common.Pager;
import com.amoby.main.entity.BsAccInfo;
import com.amoby.main.entity.Cbaacc;
import com.amoby.main.entity.Cbabill;
import com.amoby.main.entity.SysUsers;
import com.amoby.main.entity.Verifier;

/**
 * @date 2015-7-6 下午4:21:20
 * @author zhaoyy
 * @version V1.0
 * @Description
 * 
 */
public interface CbaMgrService {
    /**
     * 加载Business Account 信息分页
     * @param pager
     * @return
     * @throws Exception
     */
    public List<BsAccInfo> loadBsAccPage(Pager pager) throws Exception;

    /**
     * 保存
     * @param entity
     * @return
     * @throws Exception
     */
    public BsAccInfo saveBsAcc(BsAccInfo entity, SysUsers user) throws Exception;

    /**
     * 加载付款账户 信息分页
     * @param pager
     */
    public List<Cbaacc> loadCbaAccPage(Pager pager);

    /**
     * 保存
     * @param entity
     * @param user
     * @return
     */
    public Cbaacc saveCbaAcc(Cbaacc entity, SysUsers user);

    /**
     * 加载转账日志信息分页
     * @param pager
     */
    public void loadCbabillPage(Pager pager);

    /**
     * 保存
     * @param entity
     * @param user
     * @return
     */
    public Cbabill saveCbabill(Cbabill entity, SysUsers user);

    // 联邦银行审核员查询列表
    public void getAllVerifier(Pager pager);

    public int delVerifier(Long id);

    public int addVerifier(Verifier verifier);

    public int updVerifier(Verifier verifier);

    public Integer countStatus(Map<String, Object> map);

    public Integer checkName(Map<String, Object> map);

    /**
     * 获取启用状态的联邦银行转账审核员
     * @Author zhangxinyan 2015-7-28 下午3:59:27
     * @return
     */
    public SysUsers getVerifier();

    public void update();

    public List<Map<String, Object>> exportAll(Map<String, Object> map); //导出
}
